/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tdtest.controls.factory;

import javafx.scene.Node;
import tdtest.controls.ControlFactory;
import tdtest.controls.VariableControl;
import tdtest.data.TDVariable;

/**
 *
 * @author sutter
 */
public class VariableControlFactory implements ControlFactory<TDVariable> {
	
	@Override
	public Node createControl(TDVariable variable) {
		VariableControl variableControl = new VariableControl(variable);
		return variableControl;
	}
	
	@Override
	public TDVariable createObject() {
		return new TDVariable();
	}
	
}
